package com.woniuxy.util;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @ClassName SecurityCryUtils
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/8 16:50
 * @Version 1.0
 */
public class SecurityCryUtils {
    private static final String SALT_VALUE="woniuxy";
    public static String generateEncryptedPassword(String oldPassword,String salt){
        return new Md5Hash(oldPassword,salt+SALT_VALUE).toString();
    }
}
